﻿using System;

namespace DBAccessTestFramework
{
    internal static class FileDefinitionHelper
    {
        public const string ElementNameDatasets = "datasets";
        public const string ElementNameSripts = "scripts";

        public static void ValidateAttribute(string value, string elementName, string attributeName)
        {
            if (string.IsNullOrWhiteSpace(value))
            {
                string message = string.Format("Element: '{0}'. Attribute '{1}' is required.", elementName, attributeName);
                throw new InvalidOperationException(message);
            }
        }
    }
}
